package com.uit3j.cloud.auth.application;

import org.springframework.boot.SpringBootExceptionReporter;
import org.springframework.context.ConfigurableApplicationContext;

public class MyExceptionReporter implements SpringBootExceptionReporter {
    private ConfigurableApplicationContext context;
    MyExceptionReporter(ConfigurableApplicationContext context){
        this.context = context;
    }

    @Override
    public boolean reportException(Throwable failure){
        System.out.println("进入异常报告器");
        failure.printStackTrace();
        return false;
    }
}
